<!DOCTYPE HTML>

<html lang="en">
<head>

<title>JdbcUserDetailsManagerConfigurer (spring-security-docs 5.6.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="JdbcUserDetailsManagerConfigurer (spring-security-docs 5.6.3 API)";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">

<div class="topNav"><a id="navbar.top">

</a>
<div class="skipNav"><a href="JdbcUserDetailsManagerConfigurer.html#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">

</a></div>

</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>

<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.springframework.security.config.annotation.authentication.configurers.provisioning</a></div>
<h2 title="Class JdbcUserDetailsManagerConfigurer" class="title">Class JdbcUserDetailsManagerConfigurer&lt;B extends <a href="../../ProviderManagerBuilder.html" title="interface in org.springframework.security.config.annotation.authentication">ProviderManagerBuilder</a>&lt;B&gt;&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../SecurityConfigurerAdapter.html" title="class in org.springframework.security.config.annotation">org.springframework.security.config.annotation.SecurityConfigurerAdapter</a>&lt;<a href="../../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication">AuthenticationManager</a>,&#8203;B&gt;</li>
<li>
<ul class="inheritance">
<li><a href="../userdetails/UserDetailsAwareConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.userdetails">org.springframework.security.config.annotation.authentication.configurers.userdetails.UserDetailsAwareConfigurer</a>&lt;B,&#8203;U&gt;</li>
<li>
<ul class="inheritance">
<li><a href="../userdetails/AbstractDaoAuthenticationConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.userdetails">org.springframework.security.config.annotation.authentication.configurers.userdetails.AbstractDaoAuthenticationConfigurer</a>&lt;B,&#8203;C,&#8203;U&gt;</li>
<li>
<ul class="inheritance">
<li><a href="../userdetails/UserDetailsServiceConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.userdetails">org.springframework.security.config.annotation.authentication.configurers.userdetails.UserDetailsServiceConfigurer</a>&lt;B,&#8203;C,&#8203;<a href="../../../../../provisioning/UserDetailsManager.html" title="interface in org.springframework.security.provisioning">UserDetailsManager</a>&gt;</li>
<li>
<ul class="inheritance">
<li><a href="UserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">org.springframework.security.config.annotation.authentication.configurers.provisioning.UserDetailsManagerConfigurer</a>&lt;B,&#8203;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;B&gt;&gt;</li>
<li>
<ul class="inheritance">
<li>org.springframework.security.config.annotation.authentication.configurers.provisioning.JdbcUserDetailsManagerConfigurer&lt;B&gt;</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>B</code> - the type of the <a href="../../ProviderManagerBuilder.html" title="interface in org.springframework.security.config.annotation.authentication"><code>ProviderManagerBuilder</code></a> that is being configured</dd>
</dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="../../../SecurityConfigurer.html" title="interface in org.springframework.security.config.annotation">SecurityConfigurer</a>&lt;<a href="../../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication">AuthenticationManager</a>,&#8203;B&gt;</code></dd>
</dl>
<hr>
<pre>public class <span class="typeNameLabel">JdbcUserDetailsManagerConfigurer&lt;B extends <a href="../../ProviderManagerBuilder.html" title="interface in org.springframework.security.config.annotation.authentication">ProviderManagerBuilder</a>&lt;B&gt;&gt;</span>
extends <a href="UserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">UserDetailsManagerConfigurer</a>&lt;B,&#8203;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;B&gt;&gt;</pre>
<div class="block">Configures an
<a href="../../builders/AuthenticationManagerBuilder.html" title="class in org.springframework.security.config.annotation.authentication.builders"><code>AuthenticationManagerBuilder</code></a>
to have JDBC authentication. It also allows easily adding users to the database used
for authentication and setting up the schema.
<p>
The only required method is the <a href="JdbcUserDetailsManagerConfigurer.html#dataSource(javax.sql.DataSource)"><code>dataSource(javax.sql.DataSource)</code></a> all other
methods have reasonable defaults.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.2</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">

</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.org.springframework.security.config.annotation.authentication.configurers.provisioning.UserDetailsManagerConfigurer">

</a>
<h3>Nested classes/interfaces inherited from class&nbsp;org.springframework.security.config.annotation.authentication.configurers.provisioning.<a href="UserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">UserDetailsManagerConfigurer</a></h3>
<code><a href="UserDetailsManagerConfigurer.UserDetailsBuilder.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">UserDetailsManagerConfigurer.UserDetailsBuilder</a></code></li>
</ul>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">

</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#%3Cinit%3E()">JdbcUserDetailsManagerConfigurer</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#%3Cinit%3E(org.springframework.security.provisioning.JdbcUserDetailsManager)">JdbcUserDetailsManagerConfigurer</a></span>&#8203;(<a href="../../../../../provisioning/JdbcUserDetailsManager.html" title="class in org.springframework.security.provisioning">JdbcUserDetailsManager</a>&nbsp;manager)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">

</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#authoritiesByUsernameQuery(java.lang.String)">authoritiesByUsernameQuery</a></span>&#8203;(java.lang.String&nbsp;query)</code></th>
<td class="colLast">
<div class="block">Sets the query to be used for finding a user's authorities by their username.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#dataSource(javax.sql.DataSource)">dataSource</a></span>&#8203;(javax.sql.DataSource&nbsp;dataSource)</code></th>
<td class="colLast">
<div class="block">Populates the <code>DataSource</code> to be used.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected org.springframework.jdbc.datasource.init.DatabasePopulator</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#getDatabasePopulator()">getDatabasePopulator</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../provisioning/JdbcUserDetailsManager.html" title="class in org.springframework.security.provisioning">JdbcUserDetailsManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#getUserDetailsService()">getUserDetailsService</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the <a href="../../../../../core/userdetails/UserDetailsService.html" title="interface in org.springframework.security.core.userdetails"><code>UserDetailsService</code></a> that is used with the
<a href="../../../../../authentication/dao/DaoAuthenticationProvider.html" title="class in org.springframework.security.authentication.dao"><code>DaoAuthenticationProvider</code></a></div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#groupAuthoritiesByUsername(java.lang.String)">groupAuthoritiesByUsername</a></span>&#8203;(java.lang.String&nbsp;query)</code></th>
<td class="colLast">
<div class="block">An SQL statement to query user's group authorities given a username.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#initUserDetailsService()">initUserDetailsService</a></span>()</code></th>
<td class="colLast">
<div class="block">Populates the users that have been added.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#rolePrefix(java.lang.String)">rolePrefix</a></span>&#8203;(java.lang.String&nbsp;rolePrefix)</code></th>
<td class="colLast">
<div class="block">A non-empty string prefix that will be added to role strings loaded from persistent
storage (default is "").</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#userCache(org.springframework.security.core.userdetails.UserCache)">userCache</a></span>&#8203;(<a href="../../../../../core/userdetails/UserCache.html" title="interface in org.springframework.security.core.userdetails">UserCache</a>&nbsp;userCache)</code></th>
<td class="colLast">
<div class="block">Defines the <a href="../../../../../core/userdetails/UserCache.html" title="interface in org.springframework.security.core.userdetails"><code>UserCache</code></a> to use</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#usersByUsernameQuery(java.lang.String)">usersByUsernameQuery</a></span>&#8203;(java.lang.String&nbsp;query)</code></th>
<td class="colLast">
<div class="block">Sets the query to be used for finding a user by their username.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JdbcUserDetailsManagerConfigurer.html#withDefaultSchema()">withDefaultSchema</a></span>()</code></th>
<td class="colLast">
<div class="block">Populates the default schema that allows users and authorities to be stored.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.authentication.configurers.provisioning.UserDetailsManagerConfigurer">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.security.config.annotation.authentication.configurers.provisioning.<a href="UserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">UserDetailsManagerConfigurer</a></h3>
<code><a href="UserDetailsManagerConfigurer.html#withUser(java.lang.String)">withUser</a>, <a href="UserDetailsManagerConfigurer.html#withUser(org.springframework.security.core.userdetails.User.UserBuilder)">withUser</a>, <a href="UserDetailsManagerConfigurer.html#withUser(org.springframework.security.core.userdetails.UserDetails)">withUser</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.authentication.configurers.userdetails.UserDetailsServiceConfigurer">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.security.config.annotation.authentication.configurers.userdetails.<a href="../userdetails/UserDetailsServiceConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.userdetails">UserDetailsServiceConfigurer</a></h3>
<code><a href="../userdetails/UserDetailsServiceConfigurer.html#configure(B)">configure</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.authentication.configurers.userdetails.AbstractDaoAuthenticationConfigurer">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.security.config.annotation.authentication.configurers.userdetails.<a href="../userdetails/AbstractDaoAuthenticationConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.userdetails">AbstractDaoAuthenticationConfigurer</a></h3>
<code><a href="../userdetails/AbstractDaoAuthenticationConfigurer.html#passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder)">passwordEncoder</a>, <a href="../userdetails/AbstractDaoAuthenticationConfigurer.html#userDetailsPasswordManager(org.springframework.security.core.userdetails.UserDetailsPasswordService)">userDetailsPasswordManager</a>, <a href="../userdetails/AbstractDaoAuthenticationConfigurer.html#withObjectPostProcessor(org.springframework.security.config.annotation.ObjectPostProcessor)">withObjectPostProcessor</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.SecurityConfigurerAdapter">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.security.config.annotation.<a href="../../../SecurityConfigurerAdapter.html" title="class in org.springframework.security.config.annotation">SecurityConfigurerAdapter</a></h3>
<code><a href="../../../SecurityConfigurerAdapter.html#addObjectPostProcessor(org.springframework.security.config.annotation.ObjectPostProcessor)">addObjectPostProcessor</a>, <a href="../../../SecurityConfigurerAdapter.html#and()">and</a>, <a href="../../../SecurityConfigurerAdapter.html#getBuilder()">getBuilder</a>, <a href="../../../SecurityConfigurerAdapter.html#init(B)">init</a>, <a href="../../../SecurityConfigurerAdapter.html#postProcess(T)">postProcess</a>, <a href="../../../SecurityConfigurerAdapter.html#setBuilder(B)">setBuilder</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">

</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">

</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.springframework.security.provisioning.JdbcUserDetailsManager)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>JdbcUserDetailsManagerConfigurer</h4>
<pre>public&nbsp;JdbcUserDetailsManagerConfigurer&#8203;(<a href="../../../../../provisioning/JdbcUserDetailsManager.html" title="class in org.springframework.security.provisioning">JdbcUserDetailsManager</a>&nbsp;manager)</pre>
</li>
</ul>
<a id="&lt;init&gt;()">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JdbcUserDetailsManagerConfigurer</h4>
<pre>public&nbsp;JdbcUserDetailsManagerConfigurer()</pre>
</li>
</ul>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">

</a>
<h3>Method Detail</h3>
<a id="dataSource(javax.sql.DataSource)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>dataSource</h4>
<pre class="methodSignature">public&nbsp;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&nbsp;dataSource&#8203;(javax.sql.DataSource&nbsp;dataSource)</pre>
<div class="block">Populates the <code>DataSource</code> to be used. This is the only required attribute.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dataSource</code> - the <code>DataSource</code> to be used. Cannot be null.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning"><code>JdbcUserDetailsManagerConfigurer</code></a> used for additional
customizations</dd>
</dl>
</li>
</ul>
<a id="usersByUsernameQuery(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>usersByUsernameQuery</h4>
<pre class="methodSignature">public&nbsp;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&nbsp;usersByUsernameQuery&#8203;(java.lang.String&nbsp;query)</pre>
<div class="block">Sets the query to be used for finding a user by their username. For example:
<code>
select username,password,enabled from users where username = ?
</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>query</code> - The query to use for selecting the username, password, and if the user
is enabled by username. Must contain a single parameter for the username.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning"><code>JdbcUserDetailsManagerConfigurer</code></a> used for additional
customizations</dd>
</dl>
</li>
</ul>
<a id="authoritiesByUsernameQuery(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>authoritiesByUsernameQuery</h4>
<pre class="methodSignature">public&nbsp;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&nbsp;authoritiesByUsernameQuery&#8203;(java.lang.String&nbsp;query)</pre>
<div class="block">Sets the query to be used for finding a user's authorities by their username. For
example:
<code>
select username,authority from authorities where username = ?
</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>query</code> - The query to use for selecting the username, authority by username.
Must contain a single parameter for the username.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning"><code>JdbcUserDetailsManagerConfigurer</code></a> used for additional
customizations</dd>
</dl>
</li>
</ul>
<a id="groupAuthoritiesByUsername(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>groupAuthoritiesByUsername</h4>
<pre class="methodSignature">public&nbsp;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&nbsp;groupAuthoritiesByUsername&#8203;(java.lang.String&nbsp;query)</pre>
<div class="block">An SQL statement to query user's group authorities given a username. For example:
<code>
select
g.id, g.group_name, ga.authority
from
groups g, group_members gm, group_authorities ga
where
gm.username = ? and g.id = ga.group_id and g.id = gm.group_id
</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>query</code> - The query to use for selecting the authorities by group. Must contain
a single parameter for the username.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning"><code>JdbcUserDetailsManagerConfigurer</code></a> used for additional
customizations</dd>
</dl>
</li>
</ul>
<a id="rolePrefix(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>rolePrefix</h4>
<pre class="methodSignature">public&nbsp;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&nbsp;rolePrefix&#8203;(java.lang.String&nbsp;rolePrefix)</pre>
<div class="block">A non-empty string prefix that will be added to role strings loaded from persistent
storage (default is "").</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rolePrefix</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning"><code>JdbcUserDetailsManagerConfigurer</code></a> used for additional
customizations</dd>
</dl>
</li>
</ul>
<a id="userCache(org.springframework.security.core.userdetails.UserCache)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>userCache</h4>
<pre class="methodSignature">public&nbsp;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&nbsp;userCache&#8203;(<a href="../../../../../core/userdetails/UserCache.html" title="interface in org.springframework.security.core.userdetails">UserCache</a>&nbsp;userCache)</pre>
<div class="block">Defines the <a href="../../../../../core/userdetails/UserCache.html" title="interface in org.springframework.security.core.userdetails"><code>UserCache</code></a> to use</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>userCache</code> - the <a href="../../../../../core/userdetails/UserCache.html" title="interface in org.springframework.security.core.userdetails"><code>UserCache</code></a> to use</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning"><code>JdbcUserDetailsManagerConfigurer</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="initUserDetailsService()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>initUserDetailsService</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;initUserDetailsService()
                               throws java.lang.Exception</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="UserDetailsManagerConfigurer.html#initUserDetailsService()">UserDetailsManagerConfigurer</a></code></span></div>
<div class="block">Populates the users that have been added.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="UserDetailsManagerConfigurer.html#initUserDetailsService()">initUserDetailsService</a></code>&nbsp;in class&nbsp;<code><a href="UserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">UserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a> extends <a href="../../ProviderManagerBuilder.html" title="interface in org.springframework.security.config.annotation.authentication">ProviderManagerBuilder</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;,&#8203;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a> extends <a href="../../ProviderManagerBuilder.html" title="interface in org.springframework.security.config.annotation.authentication">ProviderManagerBuilder</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&gt;&gt;</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code></dd>
</dl>
</li>
</ul>
<a id="getUserDetailsService()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>getUserDetailsService</h4>
<pre class="methodSignature">public&nbsp;<a href="../../../../../provisioning/JdbcUserDetailsManager.html" title="class in org.springframework.security.provisioning">JdbcUserDetailsManager</a>&nbsp;getUserDetailsService()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../userdetails/AbstractDaoAuthenticationConfigurer.html#getUserDetailsService()">AbstractDaoAuthenticationConfigurer</a></code></span></div>
<div class="block">Gets the <a href="../../../../../core/userdetails/UserDetailsService.html" title="interface in org.springframework.security.core.userdetails"><code>UserDetailsService</code></a> that is used with the
<a href="../../../../../authentication/dao/DaoAuthenticationProvider.html" title="class in org.springframework.security.authentication.dao"><code>DaoAuthenticationProvider</code></a></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../userdetails/AbstractDaoAuthenticationConfigurer.html#getUserDetailsService()">getUserDetailsService</a></code>&nbsp;in class&nbsp;<code><a href="../userdetails/AbstractDaoAuthenticationConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.userdetails">AbstractDaoAuthenticationConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a> extends <a href="../../ProviderManagerBuilder.html" title="interface in org.springframework.security.config.annotation.authentication">ProviderManagerBuilder</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;,&#8203;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a> extends <a href="../../ProviderManagerBuilder.html" title="interface in org.springframework.security.config.annotation.authentication">ProviderManagerBuilder</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&gt;,&#8203;<a href="../../../../../provisioning/UserDetailsManager.html" title="interface in org.springframework.security.provisioning">UserDetailsManager</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../../core/userdetails/UserDetailsService.html" title="interface in org.springframework.security.core.userdetails"><code>UserDetailsService</code></a> that is used with the
<a href="../../../../../authentication/dao/DaoAuthenticationProvider.html" title="class in org.springframework.security.authentication.dao"><code>DaoAuthenticationProvider</code></a></dd>
</dl>
</li>
</ul>
<a id="withDefaultSchema()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>withDefaultSchema</h4>
<pre class="methodSignature">public&nbsp;<a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning">JdbcUserDetailsManagerConfigurer</a>&lt;<a href="JdbcUserDetailsManagerConfigurer.html" title="type parameter in JdbcUserDetailsManagerConfigurer">B</a>&gt;&nbsp;withDefaultSchema()</pre>
<div class="block">Populates the default schema that allows users and authorities to be stored.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="JdbcUserDetailsManagerConfigurer.html" title="class in org.springframework.security.config.annotation.authentication.configurers.provisioning"><code>JdbcUserDetailsManagerConfigurer</code></a> used for additional
customizations</dd>
</dl>
</li>
</ul>
<a id="getDatabasePopulator()">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getDatabasePopulator</h4>
<pre class="methodSignature">protected&nbsp;org.springframework.jdbc.datasource.init.DatabasePopulator&nbsp;getDatabasePopulator()</pre>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>

<footer role="contentinfo">
<nav role="navigation">

<div class="bottomNav"><a id="navbar.bottom">

</a>
<div class="skipNav"><a href="JdbcUserDetailsManagerConfigurer.html#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="JdbcUserDetailsManagerConfigurer.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">

</a></div>

</nav>
</footer>
<script>if (window.parent == window) {(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-2728886-23', 'auto', {'siteSpeedSampleRate': 100});ga('send', 'pageview');}</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"7040ed7acddd97cf","token":"bffcb8a918ae4755926f76178bfbd26b","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>
